<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="header">
    <link type="text/css" rel="stylesheet" class="k_bui_css" th:href="@{/static/theme/font/bui-fonts.min.css}">
    <link type="text/css" rel="stylesheet" class="k_bui_css" th:href="@{/static/theme/blue/main.min.css}">
    <link type="text/css" rel="stylesheet"  th:href="@{/static/theme/blue/site.css}">
    <script type="application/javascript" th:src="@{/static/lib/jquery.min.js}"></script>        
    <script>           
            ctxPath = '[[${#httpServletRequest.getContextPath()}]]/';           
            loginUser = '[(${#httpServletRequest.getAttribute("loginUser")})]';
            loginUserId = '[(${#httpServletRequest.getAttribute("loginUserId")})]'; 
            jsVersion = '[(${#httpServletRequest.getAttribute("jsversion")})]'; 
            SRCUUID = '[(${#httpServletRequest.getAttribute("scruuid")})]';
            
            /**动态配置文件**/
            uiConfigFile = '[(${#httpServletRequest.getAttribute("cfgfile")})]';           
            if(!uiConfigFile || uiConfigFile === ""){
            	uiConfigFile = parent.uiConfigFile;
            }
            if(!uiConfigFile || uiConfigFile === ""){
            	uiConfigFile = "config2.js";
            }
            var head = document.getElementsByTagName('head')[0];
            var script = document.createElement('script');
            script.async = false;
            script.type = 'text/javascript';
            script.charset = 'utf-8';          
            script.src= ctxPath + 'static/lib/'+uiConfigFile+"?jsver="+jsVersion;
            $(head).prepend(script); 
            
            /**用于适配datagrid满屏场景**/
            window["FitForm"] = function (wrap){
            	//console.log("FitForm >>>>>>>>");
            	wrap.css({"position":"relative" ,"height":"100%" }).addClass("k_box_size");
            	var qform = wrap.children(".form_condition");
            	var gform = wrap.children(".form_grid").addClass("k_box_size");
            	qform.css({"position":"relative" ,"z-index":2 });
            	var border = qform.outerHeight() + "px solid #fff";
            	gform.css({"position":"absolute" ,"z-index":1,"top": 0,"height":"100%","width":"100%","border-top": border });            	
            }
     </script>
     <script type="application/javascript" th:src="@{'/static/lib/bui-0.0.1.js?jsver='+${jsversion}}"></script> 
</head>





